import java.io.*;  
import java.awt.event.*;
import java.awt.*;  
import javax.swing.*;
public class unano {  
public static void main(String[] args) {  
Image icon = Toolkit.getDefaultToolkit().getImage("uN.png");    
JFrame f=new JFrame();//creating instance of JFrame  
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setIconImage(icon);    
          
JButton b=new JButton("New Session");//creating instance of JButton  
b.setBounds(120,100,150, 40);//x axis, y axis, width, height            

JButton b1=new JButton("Load Session");//creating instance of JButton
b1.setBounds(120,150,150, 40);//x axis, y axis, width, height

JButton b2=new JButton("Plug-ins");//creating instance of JButton
b2.setBounds(120,200,150, 40);//x axis, y axis, width, height

JButton b3=new JButton("Sessions");
b3.setBounds(120,250,150,40);

JButton b4=new JButton("Readme");
b4.setBounds(120,300,150,40);

f.add(b);//adding button in JFrame
f.add(b1);  
f.add(b2);
f.add(b3);
f.add(b4);
f.setTitle("uNano IDE");
          
b.addActionListener(new ActionListener(){  
public void actionPerformed(ActionEvent e){  
    try {
        Runtime.getRuntime().exec("cmd /c start csession.bat /K ");

    } catch (IOException ee) {
        ee.printStackTrace();
        }
}  

});

b1.addActionListener(new ActionListener(){  
    public void actionPerformed(ActionEvent e){  
        try {
            Runtime.getRuntime().exec("cmd /c start load.bat /K ");
    
        } catch (IOException ee) {
            ee.printStackTrace();
        }
    }  
    
});

b2.addActionListener(new ActionListener(){  
public void actionPerformed(ActionEvent e){  
    try {
        Runtime.getRuntime().exec("cmd /c start openplugins.bat /K ");

    } catch (IOException ee) {
        ee.printStackTrace();
    }
}  

});

b3.addActionListener(new ActionListener(){  
public void actionPerformed(ActionEvent e){  
    try {
        Runtime.getRuntime().exec("cmd /c start sessions /K ");

    } catch (IOException ee) {
        ee.printStackTrace();
    }
}  

});

b4.addActionListener(new ActionListener(){  
public void actionPerformed(ActionEvent e){  
    try {
        Runtime.getRuntime().exec("cmd /c start readme.bat /K ");

    } catch (IOException ee) {
        ee.printStackTrace();
    }
}  

});

f.setSize(400,500);//400 width and 500 height  
f.setLayout(null);//using no layout manager  
f.setVisible(true);//making the frame visible  
}  
}  
